package cn.cdyx.ydhl.service;


import cn.cdyx.common.config.YXTableNameHandler;
import cn.cdyx.common.pojo.HXYTEST;
import cn.cdyx.common.utils.TableNameUtil;
import cn.cdyx.ydhl.mapper.HXYTESTMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class HXYTESTServer {
    @Autowired
    private HXYTESTMapper hxytestMapper;
    public String saveHXY(HXYTEST hxytest){
        String tableName = TableNameUtil.getTableName("HXYTEST", "_01");
        YXTableNameHandler.setTableName(tableName);
        hxytestMapper.insert(hxytest);
        return "success";
    }
}
